package com.javasm.adminapi.module.system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.javasm.adminapi.module.system.entity.Role;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 角色表(Role)表数据库访问层
 *
 * @author makejava
 * @since 2025-10-14 21:47:38
 */
public interface RoleDao extends BaseMapper<Role> {

    @Select("SELECT count(*) from user,role where user.user_role_id=role.id AND role.id = #{id}")
    Long listCount(Long id);
}

